﻿

namespace Manga.Contents
{
    using System;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Navigation;
#pragma warning disable 1591
    public class NavigationPage:Page
    {
        public object Parameter { get; private set; }
        public Type SourcePageType { get; private set; }
        public object Content { get;private set; }
        public Uri Uri { get; private set; }

        /// <summary>
        /// 获取导航参数
        /// </summary>
        /// <param name="e"></param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Parameter = e.Parameter;
            SourcePageType = e.SourcePageType;
            Content = e.Content;
            Uri = e.Uri;
            base.OnNavigatedTo(e);
        }

        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);
        }
    }
}
